package com.example.online.music;

import com.example.online.music.service.SingerService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@Slf4j
@SpringBootTest
public class TestSingerService {

  @Autowired
  private SingerService singerService;

  @Test
  public void testUpdateSinger() {
    SingerRequest singerRequest = new SingerRequest();
    singerRequest.setPic("xxxx");
    singerRequest.setId(111111);
    singerRequest.setName("jeff");
    log.info("测试更新歌手信息：{}", singerService.updateSingerMsg(singerRequest));

  }
}


